Skip to content

Conversation

@trly
Copy link

@trly trly commented Jan 14, 2026

Add Java 25 support to scip-java docker image
Add a skill file to quickly update all available LTS JVM versions in the docker image

Test plan

Ensured the docker image was able to be built locally and tested locally indexing a Java 25 based project

❯ podman run -v $(pwd):/sources \
  --env JVM_VERSION=25 \
  --env NODE_OPTIONS="--max-old-space-size=4096" \
  localhost/scip-java-test:latest scip-java index
...
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:59 min
[INFO] Finished at: 2026-01-14T20:19:14Z
[INFO] ------------------------------------------------------------------------
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by com.google.protobuf.UnsafeUtil$MemoryAccessor (file:/root/.cache/coursier/v1/https/repo1.maven.org/maven2/com/google/protobuf/protobuf-java/3.15.6/protobuf-java-3.15.6.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.protobuf.UnsafeUtil$MemoryAccessor
WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release
info: /sources/index.scip

❯ src code-intel upload -github-token=$GITHUB_TOKEN -root='commafeed-server'
💡 Inferred arguments
   repo: github.com/trly/commafeed
   commit: f651e6bb0be1e21c5fd85cde1852dbd2f0050d31
   root: commafeed-server
   file: index.scip
   indexer: scip-java
   indexerVersion: HEAD-20260114-1920

✅ Index compressed
💡 Indexed compressed (5.51MB -> 0.58MB).
✅ Index uploaded
💡 View processing status at https://demo.sourcegraph.com/github.com/trly/commafeed/-/code-intelligence/uploads/U0NJUFVwbG9hZDozMDY3NjAy

@trly trly self-assigned this Jan 14, 2026
@trly trly marked this pull request as draft January 14, 2026 21:55
@trly trly changed the title add the latest LTS release (25) to the scip-java image Modernize Build Tool Support Jan 14, 2026
@trly trly closed this Jan 15, 2026
@trly trly reopened this Jan 15, 2026
Tests against currently maintained build tool versions and compatible
JDKs

Update bundled tools in docker image
case object Scala_LTS extends Scala("3.3.7", noRestrictions)
case object Scala2_13 extends Scala("2.13.18", noRestrictions)
case object Scala2_11 extends Scala("2.11.12", noRestrictions)
case object Scala2_10 extends Scala("2.10.7", noRestrictions)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have Scala2_10 here, I don't see any usage?

// See https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html#build-tool-compatibility-table
case object SBT15 extends SBT("1.5.2", atMostJava(17))
case object SBT110 extends SBT("1.10.0", noRestrictions)
case object SBT112 extends SBT("1.11.7", noRestrictions)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SBT112 name is confusing here. I think this should be SBT111 if you mean 1.11.7 so either rename STB or use actual 1.12.x version

echo "${MILL_REPO_URL}/releases" 1>&2
false
fi
echo "The --mill-version option is no longer supported." 1>&2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may need to shift

case object Scala211 extends Scala("2.11.9", atMostJava(11))
case object Scala3 extends Scala("3.3.3", noRestrictions)
case object Scala_Next extends Scala("3.7.4", noRestrictions)
case object Scala_LTS extends Scala("3.3.7", noRestrictions)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: In Java either SCALA_LTS or ScalaLts (optionally ScalaLTS) same for Scala2_13 and so on. But since this code base seems to already use similar convention here and there this is fully optional.

case object Scala_Next extends Scala("3.7.4", noRestrictions)
case object Scala_LTS extends Scala("3.3.7", noRestrictions)
case object Scala2_13 extends Scala("2.13.18", noRestrictions)
case object Scala2_11 extends Scala("2.11.12", noRestrictions)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may need to add restrictions. Scala 2.11 is most likely not compatible with newer JDK. Probably javaBetween(8, 11) is reasonable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants